package cn.edu.cxcyzx.entity;

import java.sql.Timestamp;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
/**
 * Gitee信息
 * @author zxl
 * @date   2018年6月23日下午9:00:13
 * @描述:
 *
 */
public class Gitee {
	
	private int Id;
	/**
	 * 创业中心账号
	 */
	private String userId;
	/**
	 * gitee账户
	 */
	private String userName;
	private String clientId;
	private String clientSecret;
	private String code;
	private String access_token;
	private String refresh_token;
	private String scope;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
	private Timestamp createTime;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
	private Timestamp updateTime;
	public Gitee(){}
	public Gitee(String userId,String code){
		this.userId=userId;
		this.code=code;
	}
	public Gitee(String userId,String access_token,String refresh_token){
		this.userId=userId;
		this.access_token=access_token;
		this.refresh_token=refresh_token;
	}
	public String getRefresh_token() {
		return refresh_token;
	}
	public void setRefresh_token(String refresh_token) {
		this.refresh_token = refresh_token;
	}
	public String getScope() {
		return scope;
	}
	public void setScope(String scope) {
		this.scope = scope;
	}
	public String getAccess_token() {
		return access_token;
	}
	public void setAccess_token(String access_token) {
		this.access_token = access_token;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public int getId() {
		return Id;
	}
	public void setId(int id) {
		Id = id;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getClientId() {
		return clientId;
	}
	public void setClientId(String clientId) {
		this.clientId = clientId;
	}
	public String getClientSecret() {
		return clientSecret;
	}
	public void setClientSecret(String clientSecret) {
		this.clientSecret = clientSecret;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public Timestamp getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}
	public Timestamp getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}
	@Override
	public String toString() {
		return "Gitee [Id=" + Id + ", userId=" + userId + ", userName="
				+ userName + ", clientId=" + clientId + ", clientSecret="
				+ clientSecret + ", code=" + code + ", access_token="
				+ access_token + ", refresh_token=" + refresh_token
				+ ", scope=" + scope + ", createTime=" + createTime
				+ ", updateTime=" + updateTime + "]";
	}
	
	
}
